<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>思德网</title>
<!--tab js-->
<link href="${ctx.resource}/css/select2.css" rel="stylesheet" >
<link href="${ctx.resource}/css/select2-bootstrap.css" rel="stylesheet" >

 <script language="javascript" type="text/javascript" src="${ctx.resource}/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx.resource}/front_js/jQuery1.7.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	var $tab_li = $('#tab ul li');
	$tab_li.hover(function(){
		$(this).addClass('selected').siblings().removeClass('selected');
		var index = $tab_li.index(this);
		$('div.tab_box > div').eq(index).show().siblings().hide();
	});	
});
</script>

<!--弹出层js-->
<script type="text/javascript" src="${ctx.resource}/front_js/tanchu.js"></script>
<script type="text/javascript" src="${ctx.resource}/front_js/jquery.reveal.js"></script>
</head>

<body>
<div class="os-2015">
<!--  
<script type="text/javascript" src="${ctx.resource}/front_js/header.js"></script> -->
<!-- <iframe src="../public/header.html" width="100%" height="144" frameborder="0">
</iframe>-->
<!--center-->
<jsp:include page="/WEB-INF/include/header_Second.jsp"></jsp:include>
<link rel="stylesheet"  href="${ctx.resource}/front_css/style.css" type="text/css" />
<link rel="stylesheet"  href="${ctx.resource}/css/style.css" type="text/css" />
<div class="center">
<div class="w">
<div class="center-banner">
<div class="center-people">
<dl>
<dt><img src="${ctx.resource}/images/people.png" width="93" height="93" /></dt>
<dd>
<p><%=request.getSession().getAttribute("username") %> 你好!</p>
<p><a href=""><img src="${ctx.resource}/images/center-button01.jpg" /></a></p>
</dd>
</dl>
</div>
</div>
<div class="center-main">
<div class="center-tab">
<div class="tabbox" id="statetab">
			<ul class="tabbtn">
				<li class="current"><a href="${ctx}/userInfo/userProInfo">我的项目</a></li>

			</ul><!--tabbtn end-->
			<div class="tabcon">
          <dl>
          <dt><b style="margin-left: 30px;"><img src="/seededu/static/images/img09.jpg"></b></dt>
          <dd>
<%@ include file="/WEB-INF/jsps/front_Wyef/include_Wyef_Subproinfo.jsp"%> 
          </dd>
          </dl>
          <div style=" clear:both"></div>
     <div class="tabcon2">
        <div class="tabcon2_left">
       <%@ include file="/WEB-INF/jsps/front_Wyef/include_Wyef_Menu.jsp"%> 
     </div>
     <div class="tabcon2_right">
     <div class="tabcon2_right_tit">
     <span>信息确认</span><span class="prospecial">请确认参加此项目的个人信息</span>
     </div>
       <div class="tabcon2_right_txt">
       <p class="txtcolor">${subpro.projectinformation }</p><br />
	 				
<%@ include file="/WEB-INF/jsps/front_Wyef/include_Wyef_Attachment.jsp"%> 

 
 <form action="" method="post" name="form1">
<input type="hidden" name="uid" value="${uid }">
<input type="hidden" name="spid" value="${spid }">
<input type="hidden" name="stepid" value="${steplist[0].stepid}">
<p><label>中文姓名:</label> <input name="name" type="text" value="${info.name}" class="luru" /></p>

<p><label>first姓名:</label> <input name="firstname" type="text" value="${info.firstName}" class="luru" /></p>
<p><label>last姓名:</label> <input name="lastname" type="text" value="${info.lastName}" class="luru" /></p>
<p><label>性别:</label> <select name="sex" class="luru">
   <c:if test="${info.sex eq '男'}">   
     <option value="男" selected="selected"/>男</option>
     <option value="女" />女</option>
   </c:if>  
   <c:if test="${info.sex eq '女'}">   
   <option value="男" />男</option>  
   	<option value="女" selected="selected">女</option>
   	</c:if>  
</select></p>


<p><label>生日:</label> <input name="birthday" type="text" value="${info.birthday}" class="Wdate"  onClick="WdatePicker()"  /></p>
<p><label>身份证号:</label> <input name="idcard" type="text" value="${info.idCard}" /></p>
<p><label>邮编:</label> <input name="postcode" type="text" value="${info.postCode}"/></p>
<p><label>通讯地址:</label> <input name="address" type="text" value="${info.address}" /></p>
<p><label>学校名:</label></p> <input name="schoolname" type="text" value="${info.schoolname}"/>
<p><label>年级:</label> <input name="grade" type="text" value="${info.grade}"/></p>
<p><label>手机:</label> <input name="phone" type="text" value="${info.cellPhone}" /></p>
<p><label>QQ:</label> <input name="qq" type="text" value="${info.QQ}" /></p>
<p><label>邮箱:</label> <input name="email" type="text" value="${info.email}"/></p>
<p><label>父母联系方式:</label> </p>
<p><label>父亲姓名:</label> <input name="fathername" type="text" value="${info.fatherName}" /></p>
<p><label>母亲姓名:</label> <input name="mothername" type="text" value="${info.motherName}" /></p>
<p><label>父亲手机:</label> <input name="fatherphone" type="text" value placeholder="电话"  value="${info.fatherPhone}"/><label>父亲邮箱:</label> <input name="fatheremail" type="text" value="${info.fatherEmail}"/></p>
<p><label>母亲手机:</label> <input name="motherphone" type="text"  value placeholder="电话"  value="${info.motherPhone}"/><label>母亲邮箱:</label> <input name="motheremail" type="text" value="${info.motherEmail}"/></p>
<p><label>是否住宿:</label>
<select name="isbookhotel" class="luru">
   <c:if test="${info.ifhotel eq '1'}">   
     <option value="1" selected="selected">是</option>
     <option value="0" >否</option>
   </c:if>  
   <c:if test="${info.ifhotel eq '0'}">   
   <option value="1" >是</option>  
   	<option value="0" selected="selected">否</option>
   	</c:if> 
</select></p>


<p class="tabcon2_right-btn"><input name="save"  type="image" src="${ctx.resource}/images/button02.jpg" onclick="sub('${ctx}/wyeffront/saveInfo');"/><input name="submit" type="image" src="${ctx.resource}/images/button03.jpg" onclick="submitt('${ctx}/wyeffront/submitInfo');"/></p>
       </div>
     </div>
       <div style=" clear:both"></div>
     </div>
			</div><!--tabcon end-->
			<div class="tabcon">

			</div><!--tabcon end-->
			<div class="tabcon">
				
			</div><!--tabcon end-->
			<div class="tabcon">
				
			</div><!--tabcon end-->
</div><!--tabbox end-->
</form>		
		
<script type="text/javascript" src="${ctx.resource}/front_js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">

//ajax 选项卡
$('#ajaxtab .tabbtn li a').click(function(){
	var thiscity = $(this).attr("href");
	$("#ajaxtab .loading").ajaxStart(function(){
		$(this).show();
	}); 
	$("#ajaxtab .loading").ajaxStop(function(){
		$(this).hide();
	}); 
	$('#ajaxtab .tabcon').load(thiscity);
	$('#ajaxtab .tabbtn li a').parents().removeClass("current");
	$(this).parents().addClass("current");
	return false;
});
$('#ajaxtab .tabbtn li a').eq(0).trigger("click");

//tab plugins 插件
$(function(){
	
	//选项卡鼠标滑过事件
	$('#statetab .tabbtn li').mouseover(function(){
		TabSelect("#statetab .tabbtn li", "#statetab .tabcon", "current", $(this))
	});
	$('#statetab .tabbtn li').eq(0).trigger("mouseover");
	
	//选项卡鼠标滑过事件
	$('#clicktab .tabbtn li').click(function(){
		TabSelect("#clicktab .tabbtn li", "#clicktab .tabcon", "current", $(this))
	});
	$('#clicktab .tabbtn li').eq(0).trigger("click");

	function TabSelect(tab,con,addClass,obj){
		var $_self = obj;
		var $_nav = $(tab);
		$_nav.removeClass(addClass),
		$_self.addClass(addClass);
		var $_index = $_nav.index($_self);
		var $_con = $(con);
		$_con.hide(),
		$_con.eq($_index).show();
	}
	
});
function submitt(path)
{
    
    document.form1.action=path;
     document.form1.method="post";
     if(confirm("您确认要提交表单吗?")){
    	document.form1.submit();
    	}
    
 
}

function sub(path)
{
   
	 // $('form1').action(path);
    document.form1.action=path;
     document.form1.method="post";
        if(confirm("您确认要提交表单吗?")){
    	document.form1.submit();
    	}
 	 
}
</script>
</div>

</div>
</div>
</div>
<div style=" clear:both"></div>
<div style="height:30px;"></div>
<script src="${ctx.resource}/js/vendor/jquery-1.11.0.min.js"></script>
 <script src="${ctx}/static/js/select2.min.js"></script>
 <script src="${ctx}/static/js/select2_locale_zh-CN.js"></script>
 <script src="${ctx.resource}/js/vendor/bootstrap.min.js"></script>
 <script src="${ctx.resource}/js/bootstrap-modal-trigger.js"></script>
   <script type="text/javascript">

  $(document).ready(function() {
	  
    $.fn.select2School = function(options)
{
    var opts = $.extend($.fn.select2School.defaults, options);
    this.select2({
        allowClear:true,
        width: 284,
        height: 32,
        placeholder: opts.blankMsg,
        minimumInputLength:opts.minLength,
        id:function(obj){return obj[opts.valueField]},
        ajax: {
            url: opts.url,
            dataType: 'json',
            quietMillis: opts.delay ,
            data: function (term, page) {return {name: term};},
            results: function (data, page) { return {results: data};}
        },
        formatResult: function(obj){return obj[opts.textField]},
        formatSelection:function(obj){return obj[opts.textField]},
        dropdownCssClass: "bigdrop",
        escapeMarkup: function (m) { return m; }
    });
}
	$.fn.select2School.defaults = {
    blankMsg: "请输入",
    minLength: 1,
    url:'',
    initUrl:'',
    delay:1000,
    valueField:'schoolname',
    textField:'schoolname'
	}
      $('input[name="schoolname"]').select2School({
            blankMsg:'搜索学校',//这里填写空选项时显示的文字
            url:'${ctx}/school/search-school-signature',//远程加载的url
            initUrl:'${ctx}/school/search-school-signature',//初始化url
            valueField:'schoolname',//value名   在vo中对应id的属性名
            textField: 'schoolname'//显示的text
        })
        
  })
</script>

<iframe src="${ctx}/include/footer_Index.jsp" width="100%" height="510" frameborder="0" />
</body>
</html>















